#ifndef XPLAYER_AV_PLAYER_COMMON_H
#define XPLAYER_AV_PLAYER_COMMON_H

#include <ostream>

constexpr int BUFFER_QUEUE_SIZE_AUDIO_PLAYER = 5;
constexpr int BUFFER_QUEUE_SIZE_VIDEO_PLAYER = 3;

// 播放器状态
enum class MediaState {
    IDLE,        // 初始状态
    READY,       // 就绪
    RUNNING,     // 播放中
    PAUSED,      // 已暂停
    STOPPED,     // 已停止
    ERROR        // 错误状态
};

inline std::ostream& operator<<(std::ostream& os, const MediaState& msg) {
    os << "MediaState(" << static_cast<int>(msg) << ")";
    return os;
}

#endif // XPLAYER_AV_PLAYER_COMMON_H
